#!/usr/bin/env python

import wx

application = wx.PySimpleApp()

choices = [ 'Red', 'Blue', 'Green', 'Pink', 'White' ]

dialog = wx.SingleChoiceDialog ( None, 'Pick something....', 'Dialog Title', choices )

#
dialog.SetSelection(2)

# The user pressed the "OK" button in the dialog

if dialog.ShowModal() == wx.ID_OK:

   print 'Position of selection:', dialog.GetSelection()

   print 'Selection:', dialog.GetStringSelection()

# The user exited the dialog without pressing the "OK" button

else:

   print 'You did not select anything.'

dialog.Destroy()

